import { request } from '@/utils'
// 商品类型接口(API)
export default {

  toggleRole: data => request.post('/auth/role/toggle', data),
  categoryAddApi: data => request.post('/basic-api/commodity/category/add', data),
  ListApi: params => request.get('/basic-api/commodity/order/list', { params }),
  DeleteApi: data => request.post('/basic-api/commodity/order/delete', data),
  EditApi: data => request.post('/basic-api/commodity/order/edit', data),
  orderDetailsApi: data => request.post('/basic-api/commodity/order/details', data),
  usersListApi: params => request.get('/basic-api/wechatApi/wechatList', { params }),
  placeAnOrderApi: data => request.post('/basic-api/commodity/order/placeAnOrder', data),
  storeListApi: params => request.get('/basic-api/commodity/business/list', { params }),
  goodsListApi: params => request.get('/basic-api/commodity/goods/list', { params }),
  findAddressApi: params => request.get('/basic-api/wechatApi/findAddress', { params }),
  useCouponsApi: params => request.get('/basic-api/commodity/coupons/useCoupons', { params }),
  orderLogApi: params => request.get('/basic-api/commodity/order/order_log', { params }),
}
